function dquery(){

}

dquery.prototype = {
	Constructor:dquery,
	post:function(url, data,callback){
		if (url != "" && data != "") {
			var result;
			var xhr = new XMLHttpRequest();
			xhr.open("POST", url, true);
			xhr.setRequestHeader("Content-type",
				"application/x-www-form-urlencoded");
			xhr.send(data);
			xhr.onreadystatechange = function() {
				if (xhr.readyState == 4 && xhr.status == 200) {
					result = xhr.responseText;
					callback(result);
				}
			}
		}
	},
	getJSON:function(url,callback){
		if (url != "") {
			var xhr = new XMLHttpRequest();
			xhr.onreadystatechange = function() {
				if (xhr.readyState == 4 && xhr.status == 200) {
					var result = JSON.parse(xhr.responseText);
					callback(result);
				}
			}
			xhr.open("GET", url, true);
			xhr.send();
		}
	},
	get:function(url,callback){
		if (url != "") {
			var xhr = new XMLHttpRequest();
			xhr.onreadystatechange = function() {
				if (xhr.readyState == 4 && xhr.status == 200) {
					callback(xhr.responseText);
				}
			}
			xhr.open("GET", url, true);
			xhr.send();
		}
	}
}
